package com.lanxiao.cloud.modules.gateway.route.application.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author ：qiaoliang
 * @date ：2021-09-09
 */
@ApiModel("网关搜索请求模型")
public class GatewayRouteQuery {
  @ApiModelProperty(value = "服务ID")
  private final String serviceId;
  @ApiModelProperty(value = "转发地址")
  private final String uri;
  @ApiModelProperty(value = "访问路径")
  private final String predicates;
  @ApiModelProperty(value = "过滤")
  private final String filters;
  @ApiModelProperty(value = "创建者")
  private final Long createdBy;

  public GatewayRouteQuery(String serviceId, String uri, String predicates, String filters,
      Long createdBy) {
    this.serviceId = serviceId;
    this.uri = uri;
    this.predicates = predicates;
    this.filters = filters;
    this.createdBy = createdBy;
  }

  public String getServiceId() {
    return serviceId;
  }

  public String getUri() {
    return uri;
  }

  public String getPredicates() {
    return predicates;
  }

  public String getFilters() {
    return filters;
  }

  public Long getCreatedBy() {
    return createdBy;
  }
}
